package com.xxx;

import com.xxx.listener.SystemListener;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("com.xxx.mapper")
public class Springboot3Application {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(Springboot3Application.class);
        springApplication.addListeners(new SystemListener()); // 添加listener
        springApplication.run(args);
    }

}
